/**
 * @file  会议中心接口配置文件
 * */

import { request } from '@/shared/axios';
import type { GroupItemT } from '@/@types/type-meeting';
import { getUserAuth } from '@/utils/login';


/**
 * 获取sig组信息
 * @returns {Promise<GroupItemT[]>} sig组信息列表
 */
export const getGroupInfosApi = async (): Promise<GroupItemT[]> => {
  const token = getUserAuth();
  const res = await request.get('/api-meeting/v1/meeting/group_info/', { headers: { token }, skipAuth: true, showError: false, });
  return res.data?.data || [];
};